package com.mzx.javase.thread;

/**
 * 类描述：
 *
 * @ClassName MyThread
 * @Description TODO
 * @Author 马子鑫
 * @Date 2022/8/1 14:43
 * @Version 1.0
 */
public class MyThread extends Thread{
    public MyThread() {}
    public MyThread(String name) {
        super(name);
    }
    static int ticket = 12;
    @Override
    public void run() {
        for (int i = 0; i < 3; i++) {
            System.out.println(Thread.currentThread().getName() + "还剩余：" + (ticket--));
        }
    }
}
